#include "cstring"
#include "cstdio"
#include "cstdlib"
#include "cstdint"
#include "iostream"
#include "string"

#include "power_mgr_client.h"

using namespace OHOS::PowerMgr;

extern "C" int getScreenState(void)
{
    static PowerMgrClient& g_powerMgrClient = PowerMgrClient::GetInstance();
    bool isScreen = g_powerMgrClient.IsScreenOn();
    return isScreen;
}
